OJS.Midi
Class MidiIn

java.lang.Object
  extended by OJS.Midi.MidiIn
All Implemented Interfaces:
javax.sound.midi.Transmitter

public class MidiIn
extends java.lang.Object
implements javax.sound.midi.Transmitter

Author:
shengz This class instance is a representation of the midi input port in software. It listens to the input port and transmits messages whenever it receives them.

Constructor Summary
MidiIn()
          Seach for the midi input port and instantiate a device for it.
 
Method Summary
 void close()
           
 javax.sound.midi.Receiver getReceiver()
           
 void setReceiver(javax.sound.midi.Receiver r)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiIn

public MidiIn()
Seach for the midi input port and instantiate a device for it.

Method Detail

setReceiver

public void setReceiver(javax.sound.midi.Receiver r)
Specified by:
setReceiver in interface javax.sound.midi.Transmitter

getReceiver

public javax.sound.midi.Receiver getReceiver()
Specified by:
getReceiver in interface javax.sound.midi.Transmitter

close

public void close()
Specified by:
close in interface javax.sound.midi.Transmitter